package com.august.thread;

import com.august.utils.SpringContextUtil;

import java.util.List;
import java.util.concurrent.Callable;

public class ThreadQuery implements Callable<List> {
    public static SpringContextUtil springContextUtil = new SpringContextUtil();
    private int start;
    private int end;
    //每个线程查询出来的数据集合
    private List datas;

    public ThreadQuery(int start, int end) {
        this.start=start;
        this.end=end;
        //每个线程查询出来的数据集合
//        WorkflowTaskService workflowTaskService = springContextUtil.getBean("workflowTaskService");
//        List count = workflowTaskService.getCurrentTasks(start,end);
       // datas = count;
    }

    @Override
    public List call() throws Exception {
        //每个线程查询出来的数据集合
      //  WorkflowTaskService workflowTaskService = springContextUtil.getBean("workflowTaskService");
       // List count = workflowTaskService.getCurrentTasks(start,end);
        return null;
    }
}
